<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
        <input type="hidden" name="collect_id" value="{$row.collect_id|default=''}">
        <div class="operate-bar">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>
                {:lang('common.btn_save')}
            </button>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label ">{:lang('ratio.assigner')}</label>
            <div class="layui-input-inline">
                <select name="assigner_id" lay-search lay-verify="required">
                    <option value="">{:lang("common.choose")}{:lang("ratio.assigner")}</option>
                    {foreach :getAccountingList() as $val}
                    <option value="{$val.id}" {if $val.id==$row.assigner_id}selected{/if}>{$val.name}</option>
                    {/foreach}
                </select>
            </div>

        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">{:lang('ratio.ratio')}</label>
            <div class="layui-input-inline">
                <input type="text" name="ratio" class="layui-input" lay-verify="required"
                       placeholder="{:lang('common.input')}{:lang('ratio.ratio')}"
                       value="{$row.ratio|default=''}" onkeyup="javascript:onlyNumber(this)">
            </div>
            <div class="layui-form-mid layui-word-aux">%</div>
        </div>
    </form>
</div>
<script>
    layui.use(['myCommon'], function () {
        let myCommon = layui.myCommon;
        myCommon.listen();
    });
</script>
